home *** CD-ROM | disk | FTP | other *** search
- /***********************************************************
- Paran
- ***********************************************************/
- var supportInboxOnly=true;
-
- function init() {
- var ar=this.user.split("@");
- this.loginData=["https://main.paran.com/mainAction.do?method=paranMainLogin","","wbPasswd","wbUserid="+encodeURIComponent(ar[0])+"&wbDomain="+encodeURIComponent(ar[1])];
- this.dataURL="http://mail.paran.com/";
- this.mailURL="http://mail.paran.com/";
- this.mailDomain="mail.+?.paran.com";
- if(!this.inboxOnly)this.charSet="utf-8";
- }
- function getIconURL(){
- return "http://simg.paran.com/paranicon.ico";
- }
- function process(aHttpChannel, aData){
- switch(this.stage){
- case ST_LOGIN_RES:
- this.getHtml("http://main.paran.com/paran/login_proc.jsp");
- return false;
- case (ST_LOGIN_RES+1):
- this.getHtml("http://mail.paran.com/");
- return false;
- case (ST_LOGIN_RES+2):
- var fnd=aData.match(/location.href=[\'\"](\S+)\/(\S+?)[\'\"]/);
- if(fnd){
- this.dataURL=fnd[1]+(this.inboxOnly?"/read/list.php?p_eye=mail^hom^left^mai^read":"/main/main_list.php?iframe=yes&listgb=all");
- this.mailURL=fnd[1]+"/main/";
- }
- this.stage=ST_DATA;
- break;
- }
- return WebMailHandler.prototype.process.call(this,aHttpChannel, aData);
- }
-
- function getCount(aData) {
- var fnd;
- if(this.inboxOnly)fnd=aData.match(/\uc548 \uc77d\uc740 \uba54\uc77c.+?(\d+).+?\ud1b5/);
- else fnd=aData.match(/\uc548\uc77d\uc740\uba54\uc77c.+?(\d+)\ud1b5/);
- if(fnd){
- return fnd[1];
- }else{
- return -1;
- }
- }